<template>
  <div class="search-page">
    <form action="/">
      <van-search
        v-model="value"
        show-action
        background="#f6f5f6"
        input-align="center"
        placeholder="请输入搜索关键词"
        @search="onSearch"
        @cancel="onCancel"
      />
    </form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value: "",
    };
  },
  methods: {
    onSearch(val) {
      Toast(val);
    },
    onCancel() {
      this.$router.push('/gorent/add')
    },
  },
};
</script>

<style lang='less' scoped>
.van-search{
  height: 44px;
  .van-search__content{
    height: 28px;
  }
  
}
</style>
